 <?php
        $teacherid=$_GET['tid'];
        $sql = "select * from nettteach_member where id='".$teacherid."' ";
        $result_teacher = $db -> query($sql);
        if($row_teacher=$db->fetch_array($result_teacher)){
 ?>
<div id="indexcates" >
            <div class="row-fluid" >
                <ul class="breadcrumb">
                    <li style="font-size: 15px"><strong><?php echo fs_get_star($row_teacher['star'])?>介绍 -- <?php echo ($row_teacher['realname']);?></strong> </li>
                </ul>
            </div>			
            <div id="01">
                <div class="row-fluid">
                    <div class="announcement_content" style="margin-top: 10;text-indent:2em;border-bottom-style: none;">
                             <?php echo ($row_teacher['introduce']);?>
                    </div>
                </div><!--/row-->   
            </div>
            <div class="row-fluid" >
                <ul class="breadcrumb">
                    <li style="font-size: 15px"><strong><?php echo ($row_teacher['realname']);?>  的网络课程</strong> </li>
                </ul>
            </div>			
            <div id="01">
                <div class="row-fluid" style="border-style: solid;border-width: 1px;border-color: #ccc;font-size: 1.4em;line-height: 1.4em;text-indent: 2em;padding-bottom: 0px;">
                    <table border="0" cellpadding="0" cellspacing="0" class=" " align="center" width="100%" height="100%">
                                <tr align="center" height="30px">
                                        <td nowrap>课程名称</td>
                                        <td nowrap>课程简介</td>
                                </tr> 
                                <?php 
                                         $sql_course = "select * from nettteach_course  where state='0' and teacherid='".$teacherid."'   ";
                                         $result_course = $db -> query($sql_course);
                                         while($row_course = $db ->fetch_array($result_course))
                                        {
                                                 $i++;
                                ?>
                                <tr>
                                  <td height=1 colspan=10 bgcolor="#CCCCCC" onMouseOver="bgColor='#FF8899'" onMouseOut="bgColor=' #CCCCCC'"></td>
                                </tr>
                                <tr height="50px" onMouseOver="bgColor='#FF8899'" onMouseOut="bgColor='FFFFFF'"  align="center" >
                                        <td style="width: 20%"><a target=_blank href="?do=viewcourse&courseid=<?php echo ($row_course['id'])?>" title="点击查看" style="color: blue;"><?php echo ($row_course['title'])?></a></td>
                                        <td style="width: 80%" title="<?php echo $row_course['introduction']?>"><?php echo (sub_str($row_course['introduction'],95))?> </td>
                                       
                                </tr>
                                <?php
                                        }
                                ?>
                            </table>
                </div><!--/row-->   
            </div>
   
</div>
<?php 
}
?>